/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.testapp.timemanagment.controllers;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author admin
 */
@Controller
@Secured({"ROLE_ADMIN"})
public class AdminController {
	
		@RequestMapping("admin.htm")
	public ModelAndView adminHandler() {

		ModelAndView mav = new ModelAndView("admin/admin");
		return mav;
	}
	
}
